.class public Lcom/instagram/android/d/k/i;
.super Ljava/lang/Object;
.source "ExecutorBasedRequestPerformer.java"

# interfaces
.implements Lcom/instagram/android/d/k/u;


# instance fields
.field private final a:Ljava/util/concurrent/ExecutorService;

.field private final b:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Ljava/util/concurrent/ExecutorService;)V
    .locals 2
    .parameter

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    iput-object p1, p0, Lcom/instagram/android/d/k/i;->a:Ljava/util/concurrent/ExecutorService;

    .line 20
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/instagram/android/d/k/i;->b:Landroid/os/Handler;

    .line 21
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/d/k/i;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 13
    iget-object v0, p0, Lcom/instagram/android/d/k/i;->b:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/instagram/android/d/k/d;Lcom/instagram/android/d/k/f;)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/instagram/android/d/k/d;",
            "Lcom/instagram/android/d/k/f",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 25
    invoke-static {}, Lcom/instagram/e/a/a;->a()Landroid/content/Context;

    move-result-object v0

    .line 26
    if-nez p2, :cond_0

    new-instance p2, Lcom/instagram/android/d/k/l;

    invoke-direct {p2}, Lcom/instagram/android/d/k/l;-><init>()V

    .line 29
    :cond_0
    invoke-static {p1, p2}, Lcom/instagram/android/d/k/v;->a(Lcom/instagram/android/d/k/d;Lcom/instagram/android/d/k/f;)V

    .line 31
    invoke-virtual {p2}, Lcom/instagram/android/d/k/f;->a()V

    .line 32
    iget-object v1, p0, Lcom/instagram/android/d/k/i;->a:Ljava/util/concurrent/ExecutorService;

    new-instance v2, Lcom/instagram/android/d/k/j;

    invoke-direct {v2, p0, v0, p1, p2}, Lcom/instagram/android/d/k/j;-><init>(Lcom/instagram/android/d/k/i;Landroid/content/Context;Lcom/instagram/android/d/k/d;Lcom/instagram/android/d/k/f;)V

    invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    .line 48
    return-void
.end method
